<?php 
$projects=$model->projects;
for ($i=sizeof($projects);$i>0;$i--) {
	$tabs["โครงการที่ $i"]=$this->renderPartial("_viewProject", array('model'=>$projects[$i-1]),$this);
}
$this->widget('zii.widgets.jui.CJuiTabs',array(
		'tabs'=>$tabs

		// additional javascript options for the tabs plugin
		//'options'=>$options,
));
?>